package com.changgou.task.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wz
 * @company 公司
 * @create 2020-04-15 16:20
 */
@Configuration
public class RabbitMQConfig {

    public static final String ORDER_TASK="order_task";

    @Bean
    public Queue queue(){
        return new Queue(ORDER_TASK);
    }
}
